* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

//变量
//表格边框颜色
@tableColor: #ccc;
@tableHeight: 50px;
@hoverBackground: top, #6d6d6d 50%, #000 50%;

//函数
.pre (@style, @value) {
  -webkit-@{style}: @value;
  -moz-@{style}: @value;
  -ms-@{style}: @value;
  -o-@{style}: @value;
    @{style}: @value;
}

.backgroundGradient (@value) {
  background: -webkit-linear-gradient(@value);
  background: -moz-linear-gradient(@value);
  background: -ms-linear-gradient(@value);
  background: -o-linear-gradient(@value);
  background: linear-gradient(@value);
}

li {
  list-style-type: none;
}

@selbgc: red;
@selcolor: #00ff11;
@scrollRadius: 5px;



html, body {
  width: 100%;
  height: 100%;
}
#table {
  margin: 8% 5% 2% 5%;

  #head {
    display: flex;

    li {
      height: 20px;
      flex: 1;
      border-left: 1px solid @tableColor;
      position: relative;
      &:first-child {
        border-left: 1px solid transparent;
      }
      &:last-child {
        border-right: 1px solid @tableColor;
      }
      span {
        position: absolute;
        right: -15px;
        top: -25px;
      }

      &:after {
        content: '';
        width: 5px;
        height: 5px;
        background-color: #565656;
        -webkit-border-radius: 100%;
        -moz-border-radius: 100%;
        border-radius: 100%;
        position: absolute;
        right: -3px;
        top: -4px;
      }
    }
  }
  .row {
    display: flex;
    height: @tableHeight;
    .venueName {
      line-height: @tableHeight;
      text-align: center;
      -ms-text-overflow: ellipsis;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;

    }
    li {
      flex: 1;
      border-left: 1px solid @tableColor;
      border-top: 1px solid @tableColor;
      position: relative;
      &:last-child {
        border-right: 1px solid @tableColor;
      }
    }
    &:last-child {
      li {
        border-bottom: 1px solid @tableColor;
      }
    }
    .sel {
      width: 200px;
      height: @tableHeight - 1;
      background-color: #5c94cd;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 5px;
      position: absolute;
      left: 0;
      top: 0;
      z-index: 1;
      text-align: center;
      -ms-text-overflow: ellipsis;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;

      .selMes {
        line-height: @tableHeight - 1;
        font-family: 幼圆;
        color: #fff;
      }
    }
  }
}

#hoverMessage {
  position: absolute;
  //background: -webkit-linear-gradient(top, #6d6d6d 50%, #000 50%);
  .backgroundGradient(@hoverBackground);
  padding: 20px;
  color: #fff;
  .pre(border-radius, 5px);
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  .pre(transition, .3s);

  .arrow {
    position: absolute;
    left: 50%;
    transform-origin: 50% 100%;
    transform: rotateZ(45deg) translate(-50%, 100%);
    bottom: 1px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #000 #000 transparent;
  }
}

.mask {
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #154569;
  text-align: center;
  color: #de7e2a;
  display: table;
  visibility: hidden;
  font-size: 1.5rem;

  .mes {
    vertical-align: middle;
    display: table-cell;

    .joke {
      font-size: 1.2rem;
    }
  }
}

@media screen and (max-width: 640px) {
  .mask {
    visibility: visible;
  }
  body {
    width: 640px;
  }
}

#ii {
  text-align: center;
}

.form {
  ul {
    li {
      margin-bottom: 5px;
    }
  }
}

#contextmenu {
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;

  .item {
    padding: 2px 20px;
    cursor: pointer;

    &:hover {
      background-color: #ccc;
    }
  }
}